[INFO] fetching crate perf_monitor 0.2.1...
[INFO] fixing perf_monitor-0.2.1 against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] extracting crate perf_monitor 0.2.1 into /workspace/builds/worker-2-tc2/source
[INFO] started tweaking crates.io crate perf_monitor 0.2.1
[INFO] finished tweaking crates.io crate perf_monitor 0.2.1
[INFO] tweaked toml for crates.io crate perf_monitor 0.2.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate perf_monitor 0.2.1 on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate perf_monitor 0.2.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6
[INFO] running `Command { std: "docker" "start" "2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2018 edition to 2021
[INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo.
[INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously.
[INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html
[INFO] [stderr] When building the following dependencies, the given features will no longer be used:
[INFO] [stderr] 
[INFO] [stderr]   libc v0.2.154 removed features: extra_traits
[INFO] [stderr]   libc v0.2.154 (as host dependency) removed features: default, extra_traits, std
[INFO] [stderr] 
[INFO] [stderr]    Compiling libc v0.2.154
[INFO] [stderr]    Compiling proc-macro2 v1.0.82
[INFO] [stderr]    Compiling memchr v2.7.2
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling glob v0.3.1
[INFO] [stderr]    Compiling regex-syntax v0.8.3
[INFO] [stderr]    Compiling rustix v0.38.34
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling bitflags v2.5.0
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling linux-raw-sys v0.4.13
[INFO] [stderr]    Compiling unicode-width v0.1.12
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling bindgen v0.59.2
[INFO] [stderr]    Compiling strsim v0.8.0
[INFO] [stderr]    Compiling vec_map v0.8.2
[INFO] [stderr]    Compiling libloading v0.8.3
[INFO] [stderr]    Compiling log v0.4.21
[INFO] [stderr]    Compiling termcolor v1.4.1
[INFO] [stderr]    Compiling textwrap v0.11.0
[INFO] [stderr]    Compiling humantime v2.1.0
[INFO] [stderr]    Compiling either v1.11.0
[INFO] [stderr]    Compiling home v0.5.9
[INFO] [stderr]    Compiling ansi_term v0.12.1
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling peeking_take_while v0.1.2
[INFO] [stderr]    Compiling rustc-hash v1.1.0
[INFO] [stderr]    Compiling lazycell v1.3.0
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]    Compiling cc v1.0.97
[INFO] [stderr]    Compiling thiserror v1.0.60
[INFO] [stderr]    Compiling clang-sys v1.7.0
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling syn v2.0.62
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling clap v2.34.0
[INFO] [stderr]    Compiling regex-automata v0.4.6
[INFO] [stderr]    Compiling which v4.4.2
[INFO] [stderr]    Compiling thiserror-impl v1.0.60
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling regex v1.10.4
[INFO] [stderr]    Compiling env_logger v0.9.3
[INFO] [stderr]    Compiling perf_monitor v0.2.1 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating build.rs from 2018 edition to 2021
[INFO] [stderr]    Migrating src/lib.rs from 2018 edition to 2021
[INFO] [stderr]    Migrating examples/activity_monitor.rs from 2018 edition to 2021
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.95s
[INFO] [stderr] crater-edition-check: perf_monitor v0.2.1 (/opt/rustwide/workdir) updating edition from 2018 to 2021
[INFO] [stderr]    Compiling libc v0.2.154
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling clang-sys v1.7.0
[INFO] [stderr]    Compiling clap v2.34.0
[INFO] [stderr]    Compiling env_logger v0.9.3
[INFO] [stderr]    Compiling bindgen v0.59.2
[INFO] [stderr]    Compiling perf_monitor v0.2.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `fd_count_pid` is never used
[INFO] [stdout]  --> src/fd/android_linux.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn fd_count_pid(pid: u32) -> std::io::Result<usize> {
[INFO] [stdout]   |        ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `HandleUpgrade` is never used
[INFO] [stdout]  --> src/utils/ptr_upgrade.rs:4:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub trait HandleUpgrade: Sized {
[INFO] [stdout]   |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fd_count_pid` is never used
[INFO] [stdout]  --> src/fd/android_linux.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn fd_count_pid(pid: u32) -> std::io::Result<usize> {
[INFO] [stdout]   |        ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `HandleUpgrade` is never used
[INFO] [stdout]  --> src/utils/ptr_upgrade.rs:4:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub trait HandleUpgrade: Sized {
[INFO] [stdout]   |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.29s
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2018 edition to 2021
[INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo.
[INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously.
[INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html
[INFO] [stderr] When building the following dependencies, the given features will no longer be used:
[INFO] [stderr] 
[INFO] [stderr]   libc v0.2.154 removed features: extra_traits
[INFO] [stderr]   libc v0.2.154 (as host dependency) removed features: default, extra_traits, std
[INFO] [stderr] 
[INFO] [stderr]     Checking perf_monitor v0.2.1 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/lib.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed src/mem/allocation_counter.rs (4 fixes)
[INFO] [stderr]    Migrating examples/activity_monitor.rs from 2021 edition to 2024
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.03s
[INFO] [stderr] crater-edition-check: perf_monitor v0.2.1 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]    Compiling perf_monitor v0.2.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block
[INFO] [stdout]   --> build.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |         env::set_var("TARGET", "arm64-apple-ios");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block
[INFO] [stdout]   --> build.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |         env::set_var("TARGET", "x86_64-apple-ios");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block
[INFO] [stdout]   --> build.rs:80:13
[INFO] [stdout]    |
[INFO] [stdout] 80 |             env::set_var("TARGET", "x86_64-apple-darwin");
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block
[INFO] [stdout]   --> build.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |             env::set_var("TARGET", "aarch64-apple-darwin");
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `perf_monitor` (build script) due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6", kill_on_drop: false }`
[INFO] [stdout] 2b64e8974cfc415133fd37c91f1727f0234dbd3b7321d7dd2c53538de24f36b6
